home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / logcopy.zip / TECHSPEC.TXT < prev   
Text File  |  1992-08-03  |  2KB  |  61 lines

  1. Technical Specifications of log©.dat file
  2.  
  3. Log©.dat is can be broken down into three parts:
  4.     default logging flag,
  5.     pointer list,
  6.     and record list.
  7.  
  8. DEFAULT LOGGING FLAG
  9.  
  10.      The default logging flag is a byte flag that is either
  11. zero or 255 ( hex FF).  The flag when zero turns on the default logging
  12. of all EXE and COM files being executed.  When the flag is 255 the default
  13. logging is turned off.  The default is overridden by any entry in the records
  14. part of the data file.
  15.  
  16. POINTERS
  17.  
  18.     The pointers part of the data file consists of a list of Words
  19. ( 2 byte low-high) terminated by a zero word.  Each entry points to the
  20. index in the file where its correspoiding entries is located.
  21.  
  22. RECORDS
  23.  
  24.     Each record consists of:
  25.  
  26. Position        Type            Description
  27. --------        ----- -----------------------------------------
  28. 0            byte     logging flag
  29. 1            byte    # of copies allowed (0 = ALL)
  30. 2            byte    length of Program path/filename (plength)
  31. 3            chars    string containing program path/filename
  32. 3+plength+1        byte    length of Server name (slength)
  33. 3+plength+2        chars    string containing servername
  34. 3+plength+slength+2     byte    Always zero (00)
  35. -------------------------------------------------------------------------
  36.  
  37. The logging flag is the same as the default logging flag in
  38. its function
  39.  
  40. The # of copies allowed field contains the number of allowed
  41. copies at any given time.  This has a range from 1 to 255.
  42.  
  43.  
  44. Technical Notes:
  45.  
  46. When a program is attempted to be executed, log©
  47. compares the target program string against all the record
  48. entries that the pointers point to, until a zero pointer is
  49. encountered.  If no match is found the default logging
  50. action is taken.  The target is compared to an entry from
  51. right to left.  The two match when the target matches up to
  52. the length of an record entry.
  53.  
  54. Currently I do not know of a way to return an errorlevel if
  55. the program does not get run because of not enough copies
  56. available.
  57.  
  58. The only known program it does not work with is Wordperfect
  59. executive Shell program.  The shell program hangs when
  60. exited.
  61.